
package com.joysuch.wwyt.dataperm.context;

import com.joysuch.wwyt.dataperm.enums.DataPermissionFilterType;

public class DataPermRegisterInfo {

    /**
     * 数据权限过滤类型
     */
    private DataPermissionFilterType type;
    /**
     * 数据权限join表信息
     */
    private String[] joinInfo;
    /**
     * 数据权限过滤SQL
     */
    private String filterSql;
    private Class entityClass;
    private String tableName;

    private String fieldName;
    // sql列
    private String sqlColumn;
    // 启用条件，待扩展
    private String condition;

    public Class getEntityClass() {
        return entityClass;
    }

    public void setEntityClass(Class entityClass) {
        this.entityClass = entityClass;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getSqlColumn() {
        return sqlColumn;
    }

    public void setSqlColumn(String sqlColumn) {
        this.sqlColumn = sqlColumn;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public DataPermissionFilterType getType() {
        return type;
    }

    public void setType(DataPermissionFilterType type) {
        this.type = type;
    }

    public String[] getJoinInfo() {
        return joinInfo;
    }

    public void setJoinInfo(String[] joinInfo) {
        this.joinInfo = joinInfo;
    }

    public String getFilterSql() {
        return filterSql;
    }

    public void setFilterSql(String filterSql) {
        this.filterSql = filterSql;
    }

}
